<?php
$id = $epg['id'];
$data = json_decode(file_get_contents('https://api.viu.tv/production/epgs/'.$id));
$data = $data->epgs;
for($i = 0; $i <=count($data) - 1; $i++) {
    if($data[$i]->date == date('Y-m-d') && isset($data[$i]->program_title)) {
        echo '<li><span>'.$data[$i]->startTime.'&nbsp&nbsp&nbsp&nbsp'.$data[$i]->video->program_title.'</span></li>';
    };
};